package hanler

import (
	"github.com/gin-gonic/gin"
	"github.com/rogpeppe/go-internal/cache"
)

func Login(c *gin.Context) {
	username := c.PostForm("username")
	password := c.PostForm("password")
	if username == "" || password == "" {
		c.JSON(200, gin.H{
			"msg":  "不能为空",
			"code": 500,
		})
		return
	}

	redis_iogin_key:= "login_err"+username
	errCount:=cache.

}
